package com.zp.base.entity.bo;

import com.zp.common.core.entity.BaseEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 号别业务对象
 *
 * @author zhang peng
 * @date 2023-01-15
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ClinicIndexBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = {EditGroup.class})
    private String clinicIndexId;

    /**
     * 号别名称
     */
    @NotBlank(message = "号别名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 门诊科室
     */
    @NotBlank(message = "门诊科室不能为空", groups = {AddGroup.class, EditGroup.class})
    private String deptId;

    /**
     * 所属医生
     */
    private String doctorId;

    /**
     * 诊疗项目ID
     */
    @NotBlank(message = "诊疗项目ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private String clinicItemId;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long sort;

    /**
     * 输入码
     */
    private String inputCode;

    /**
     * 机构ID
     */
    @NotBlank(message = "机构ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private String orgId;

    /**
     * 备注信息
     */
    private String remark;


}
